function doIframe(obj){
	o = obj;	
	//if (/\bautoHeight\b/.test(o.className))
	//{
		setHeight(o);
	//}
	//addEvent(o);
}

function setHeight(e){
	if(e.contentDocument){
		e.height = e.contentDocument.body.offsetHeight+35;
	} else {
		e.height = e.contentWindow.document.body.scrollHeight;
	}
}

function addEvent(obj){
	Event.observe(obj.contentDocument,'load',function(){
		//setHeight(obj);
	});
	Event.observe(obj.contentWindow,'load',function(){
		//setHeight(obj);
	});
}

//if (document.getElementById && document.createTextNode){
 //addEvent(window,'load', doIframe);	
//}
